<?php


$servername = "127.0.0.1";
$username = "root";
$password = "";
$db_date = "bbs";
// 创建连接
$conn = new mysqli($servername, $username, $password,$db_date);
$conn -> query("set names utf8");
// 检测连接
/*if (!$conn) {
    die("Connection failed: " . mysqli_connect_error());
}
echo "连接成功";
 */
?>

